package Demo03;

public class Demo03Person {
    public static void main(String[] args) {
        Person person = new Person();
        person.show();
        person.name = "张三";
//        person.age = -18;//错误写法
        person.setAge(20);
        person.show();
    }
}